@if(count($list)>0)
    @foreach($list as $v)
<li class="related-cases__case span4 span6-tablet span14-mobile no-margin">
    <div class="case-element">
        <div class="case-element__glitter clearfix">
            @php
                if(!$v->thumb_img){
                    $image=$v->master[0];
            }
            $image=$v->thumb_img;

            @endphp
            <div class="span3 span5-tablet span12-mobile case-element__glitter-img pixel-pattern pixel-pattern--dark"><img  src="{{imagecache('imagecache',['template'=>'small','filename'=>$image])}}" alt="" class="">
                <div class="case-element__glitter-img__overlay">
                   <a href="{{route('writing_detail',['id'=>$v->id])}}" style="display: block;width: 100%;height: 100%;">
                               
                            </a>
                </div>
            </div>
            <div class="span1 span2-mobile case-element__glitter-scorecard pixel-pattern">
                <div class="case-element__glitter-scorecard__score">
                    <!-- react-text: 1490 -->{{$v->hits or ''}}
                    <!-- /react-text -->
                    <!-- react-text: 1491 -->
                    <!-- /react-text --><small>@lang('web.hits')</small></div>
                <div class="case-element__glitter-scorecard__days">
                    <!-- react-text: 1494 -->{{$v->likes}}
                    <!-- /react-text -->
                    <!-- react-text: 1495 -->
                    <!-- /react-text --><small>@lang('web.likes')</small></div>
            </div>
            <div class="cf"></div>
        </div>
        <div class="case-element__details-alt clearfix">
            <div class="span3 span5-tablet case-element__details-alt-holder span12-mobile">
                <a class="case-element__details-alt__title" href="{{route('writing_detail',['id'=>$v->id])}}"><span class="case-element__details-alt__title__category">{{trans('web.'.$v->category_id)}}</span>
                    <!-- react-text: 1502 -->{{$v->name or ''}}
                    <!-- /react-text -->
                </a>
                <div class="case-element__details-alt__profile"><span class="case-credit">	<a class="case-credit__name case-credit__name--faded" href="{{route('his_detail',['id'=>$v->user->id ?? ''])}}">
																	{{$v->user->name or trans('web.no_title')}}
																	</a>
																	</span>
                </div>
            </div>
            <div class="span1 hide-tablet empty"></div>
        </div>
    </div>
</li>
@endforeach
@endif